﻿using UnityEngine;
using System.Collections;

public class MainMenu : MonoBehaviour {

	public GUIStyle mainmenu_style;

	// Use this for initialization
	void OnGUI () {

		float x = Screen.width / 2;
		float y = Screen.height / 2;

		GUI.Box (new Rect(0, 0, 156, 256),"");
		GUILayout.Label ("");
		GUILayout.Label ("   Game by:");
		GUILayout.Label ("    J. Klaus");
		GUILayout.Label ("");
		GUILayout.Label ("   Help, guidance & AI:");
		GUILayout.Label ("    T. Pyrhönen");
		GUILayout.Label ("");
		GUILayout.Label (" W,A,S,D to move");
		GUILayout.Label (" Q,E to turn");
		GUILayout.Label (" ");	

		GUI.Box (new Rect(x-240, y-100, 480, 160),"");

		GUI.Label (new Rect(x-240, y-84, 480, 80),"STL", mainmenu_style);
		GUI.Label (new Rect(x-240, y-40, 480, 80),"Slower Than Light", mainmenu_style);
		GUI.Label (new Rect(x,y+50,100,100),"", mainmenu_style);


		if (GUI.Button (new Rect (x - 120, y + 120, 120, 100), "START")) {
			Application.LoadLevel ("level_1");
		}

		if (GUI.Button (new Rect(x, y + 120, 120, 100), "QUIT")) {
			Application.Quit();
		}
	}
}
